﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace BasicModuleCache
{
    [SugarTable("MysqlCacheModel")]//当和数据库名称不一样可以设置表别名 指定表明
    public class MysqlCacheModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//数据库是自增才配自增 
        public int Id { get; set; }

        [SugarColumn(ColumnDataType = "Nvarchar(1000)", IsNullable = true)]
        public string CacheKey { get; set; }

        [SugarColumn(ColumnDataType = "Nvarchar(1000)", IsNullable = true)]
        public string CacheValue { get; set; }
    }
}
